package com.mytech.cslive.activities;

import java.util.HashMap;

public class IntentHelper {
    private static IntentHelper instance;
    private HashMap<String, Object> hashMap;

    private IntentHelper() {
    	hashMap = new HashMap<String, Object>();
    }

    private static IntentHelper getInstance() {
        if(instance==null) {
        	instance = new IntentHelper();
        }
        
        return instance;
    }

    public HashMap<String, Object> getHashMap() {
		return hashMap;
	}
    
    public static void addObjectForKey(String key, Object value) {
        getInstance().getHashMap().put(key, value);
    }

    public static Object getObjectForKey(String key) {
        Object value = getInstance().getHashMap().get(key);

        return value;
    }
}